﻿<%@ Page Title="Home" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="Scripts/videoBox/js/jquery-1.6.1.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="Scripts/videoBox/css/prettyPhoto.css" type="text/css"
        media="screen" charset="utf-8" />
    <script src="Scripts/videoBox/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="Scripts/Slider/flexslider.css" type="text/css" media="screen" />
    <script type="text/javascript" charset="utf-8" src="Scripts/Slider/jquery.flexslider.js"></script>
    <script type="text/javascript">
        $(function () {
            SyntaxHighlighter.all();
        });
        $(window).load(function () {
            $('.flexslider').flexslider({
                animation: "slide",
                start: function (slider) {
                    $('body').removeClass('loading');
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="flexslider">
        <ul class="slides">
            <li>
                <img src="images/banner10.jpg" />
            </li>
            <li>
                <img src="images/banner10.jpg" />
            </li>
            <li>
                <img src="images/banner10.jpg" />
            </li>
            <li>
                <img src="images/banner10.jpg" />
            </li>
        </ul>
    </div>
    <script type="text/javascript" charset="utf-8">
        $(document).ready(function () {
            $("a[rel^='prettyPhoto']").prettyPhoto();
        });
    </script>
    <table>
        <tr>
            <td valign="top">
                <asp:Panel ID="Panel1" runat="server" GroupingText="New Book **!">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                        DataSourceID="SqlDataSource1" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None"
                        BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal">
                        <Columns>
                            <asp:TemplateField HeaderText="Title">
                                <ItemTemplate>
                                    <a href='book/<%# Eval("filename") %>' target="_blank" title="">
                                        <%# Eval("Title")%></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                        </Columns>
                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                        <SortedDescendingHeaderStyle BackColor="#242121" />
                    </asp:GridView>
                </asp:Panel>
            </td>
            <td  valign="top"><asp:Panel ID="Panel2" runat="server" GroupingText="New Video">
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
            DataSourceID="SqlDataSource2">
            <Columns>
                <asp:TemplateField HeaderText="New Video">
                    <ItemTemplate>
                        <%# Eval("Title") %><br />
                        <a href='<%# Eval("link") %>' rel="prettyPhoto" target="_blank" title="">
                            <%# Eval("Description")%></a><br />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT TOP(10)* FROM [Video] WHERE STATUS=1 ORDER BY ID DESC">
        </asp:SqlDataSource>
    </asp:Panel></td>
        </tr>
    </table>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT TOP(10) * FROM [Book] WHERE STATUS=1 ORDER BY Id Desc">
    </asp:SqlDataSource>
</asp:Content>
